
var XMLHttpRequestObject = false;
if (window.XMLHttpRequest) {
    XMLHttpRequestObject = new XMLHttpRequest();
} else if (window.ActiveXObject) {
    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
}


function showkeywords() {

    if (XMLHttpRequestObject) {
        var obj = document.getElementById("keywordscloud");
        XMLHttpRequestObject.open("GET", "lib/cloud.php");
        XMLHttpRequestObject.onreadystatechange = function() {

            if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
                obj.innerHTML = XMLHttpRequestObject.responseText;
            }
        }
    
        XMLHttpRequestObject.send(null);
    }
}
